<?
include_once('baseClasses.php');
$validation_array = array(
        'first_name' => array('pattern'=>"/^[a-z][a-z\s-]{1,31}\$/i", 'check_this'=>1),
        'last_name' => array('pattern'=>"/^[a-z][a-z\s-]{1,31}\$/i", 'check_this'=>1),
        'company' => array('pattern'=>"/^[a-z][a-z0-9-&#\.\s]{3,255}\$/i", 'check_this'=>0),
        'job_title' => array('pattern'=>"/^[a-z][a-z-&#\.\s]{3,255}\$/i", 'check_this'=>0),
        'email' => array('pattern'=>"/^[a-zA-Z0-9][A-Za-z0-9_\.-]*@([\w\d_-]+\.)+\w{2,5}\$/", 'check_this'=>1),
        'address1' => array('pattern'=>"/^[\w\d]+/", 'check_this'=>1),
        'address2' => array('pattern'=>"/^[\w\d]+/", 'check_this'=>0),
        'city' => array('pattern'=>"/^[a-zA-Z][a-zA-Z\s]{2,31}\$/", 'check_this'=>1),
        'state' => array('pattern'=>"/^[a-z\s]{2,31}\$/i", 'check_this'=>1),
        'zip' => array('pattern'=>"/^[\w\d\s\-]{2,31}\$/", 'check_this'=>1),
        'country' => array('pattern'=>"/^[A-Z]{2}\$/", 'check_this'=>1),
        'phone' => array('pattern'=>"/^[0-9\+\(\)\.][0-9\s-\(\)\.]+\$/", 'check_this'=>1),
        'fax' => array('pattern'=>"/^[0-9\+\(\)\.][0-9\s-\(\)\.]+\$/", 'check_this'=>0),
        'vat_registered' => array('pattern'=>"/^\d\$/", 'check_this'=>0),
        'vat_num' => array('pattern'=>"/^[\w\d\s\-]{3,64}\$/", 'check_this'=>0)
);

$user_validator = new validator($validation_array);

?>
